package com.lagou.entity;

public class Transaction {

    /**
     *   `id` int(11) NOT NULL AUTO_INCREMENT
     *   `cardid` varchar(100) DEFAULT NULL
     *   `tratype` varchar(100) DEFAULT NULL
     *   `tramoney` double DEFAULT NULL
     *   `tradate` datetime DEFAULT NULL
     */
    private int id;
    private String cardId;
    private String traType;
    private String traMoney;
    private String traDate;

    public Transaction() {
    }

    public Transaction(int id, String cardId, String traType, String traMoney, String traDate) {
        this.id = id;
        this.cardId = cardId;
        this.traType = traType;
        this.traMoney = traMoney;
        this.traDate = traDate;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCardId() {
        return cardId;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId;
    }

    public String getTraType() {
        return traType;
    }

    public void setTraType(String traType) {
        this.traType = traType;
    }

    public String getTraMoney() {
        return traMoney;
    }

    public void setTraMoney(String traMoney) {
        this.traMoney = traMoney;
    }

    public String getTraDate() {
        return traDate;
    }

    public void setTraDate(String traDate) {
        this.traDate = traDate;
    }

    @Override
    public String toString() {
        return "Transaction{" +
                "id=" + id +
                ", cardId='" + cardId + '\'' +
                ", traType='" + traType + '\'' +
                ", traMoney='" + traMoney + '\'' +
                ", traDate='" + traDate + '\'' +
                '}';
    }
}
